package org.jeecg.modules.demo.baseselfordercommodity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 自提订单商品表
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
@Data
@TableName("base_self_order_commodity")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "base_self_order_commodity对象", description = "自提订单商品表")
public class BaseSelfOrderCommodity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 订单id
     */
    @Excel(name = "订单id", width = 15)
    @ApiModelProperty(value = "订单id")
    private String orderId;
    /**
     * 商品id
     */
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    private String commodityId;
    /**
     * 商品名称
     */
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String commodityName;
    /**
     * 商品规格
     */
    @Excel(name = "商品规格", width = 15)
    @ApiModelProperty(value = "商品规格")
    private String commoditySpecs;
    /**
     * 商品个数
     */
    @Excel(name = "商品个数", width = 15)
    @ApiModelProperty(value = "商品个数")
    private String commodityQty;
    /**
     * 单价
     */
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private String unitPrice;
    /**
     * 总价
     */
    @Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    private String totalPrice;
    /**
     * 优惠金额
     */
    @Excel(name = "优惠金额", width = 15)
    @ApiModelProperty(value = "优惠金额")
    private String preferAmount;
    /**
     * 是否赠送（是：1，否：0）
     */
    @Excel(name = "是否赠送（是：1，否：0）", width = 15)
    @ApiModelProperty(value = "是否赠送（是：1，否：0）")
    private String giveFlag;
    /**
     * 提成归属（存员工id）
     */
    @Excel(name = "提成归属（存员工id）", width = 15)
    @ApiModelProperty(value = "提成归属（存员工id）")
    private String commissionOwner;

    private String commissionOwnerName;
    private String storeId;
    private String pic;
    private Double commissionMoney;
    private String dividendOwner;
    private String dividendOwnerName;
    private Double dividendMoney;
    private String commodityJsonStr;
}
